package src.lab03.test06;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.util.RandomAccess;


/**
 * Created by 阿阿阿阿豪丶 on 2017/12/15.
 */
public class Test {
    public static void main(String[] args) {
        String path = "D:\\Hello.txt";
        try {
            RandomAccessFile randomAccessFile = new RandomAccessFile(path,"r");

            String line = null;
            while((line = randomAccessFile.readLine())!= null){

            }
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
    }

}
